﻿<!--                                                             -->
<!-- Copyright (C) Microsoft Corporation. All rights reserved.   -->       
<!--                                                             -->


<Window x:Class="Microsoft.LibraryManagerDemo.Controls.ErrorBox"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="{Binding Caption}"
    SizeToContent="WidthAndHeight"
    WindowStartupLocation="CenterScreen"
    WindowStyle="ToolWindow"
	ResizeMode="NoResize"
	ShowInTaskbar="False"
	MinWidth="320"	
	MinHeight="180"
    Background="{DynamicResource Brush_StandardBackground}"
    Foreground="{DynamicResource Brush_ToolBarForeground}">
    
    <Border>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="24" />
                <RowDefinition Height="*" />
                <RowDefinition Height="32" />
                <RowDefinition Height="9"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="73.45" />
                <ColumnDefinition Width="Auto" MinWidth="230.55" />
            </Grid.ColumnDefinitions>
            <Image Grid.Row="1" Source="..\Resources\Images\Error.png" Width="64" Height="64" Stretch="Fill" Margin="4.725,0,4.725,0" />
            <TextBlock Margin="8,0,8,0" MaxWidth="640" Grid.Column="1" Grid.Row="1" Text="{Binding Error}" TextWrapping="Wrap" VerticalAlignment="Center"/>
            <Button HorizontalAlignment="Right" Margin="0,0,8,0" Width="32" Content="OK" Grid.Column="1" Grid.Row="2" Click="Button_Click" />
        </Grid>
    </Border>
</Window>
